import { axios } from '@/utils/request'
// 社保公积金订单
export function getTablePage(parameter) {
  return axios({
    url: '/sys/hr/insure/bill/pageInsureBill',
    method: 'post',
    data: parameter
  })
}
export function insureBillPay(parameter) {
  return axios({
    url: '/sys/hr/insure/bill/insureBillPay',
    method: 'post',
    data: parameter
  })
}
export function insureBillPayRefuse(parameter) {
  return axios({
    url: '/sys/hr/insure/bill/insureBillPayRefuse',
    method: 'post',
    data: parameter
  })
}
export function insureBillPayBatch(parameter) {
  return axios({
    url: '/sys/hr/insure/bill/insureBillPayBatch',
    method: 'post',
    data: parameter
  })
}
export function insureBillPayRefuseBatch(parameter) {
  return axios({
    url: '/sys/hr/insure/bill/insureBillRefuseBatch',
    method: 'post',
    data: parameter
  })
}
export function exportInsureBill(parameter) {
  return axios({
    url: '/sys/hr/insure/bill/exportInsureBill',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}

// 社保退缴账单
export function getTableReturnPage(parameter) {
  return axios({
    url: '/sys/hr/insure/refundBill/pageInsureRefundOrder',
    method: 'post',
    data: parameter
  })
}
export function refundBillAdd(parameter) {
  return axios({
    url: '/sys/hr/insure/refundBill/add',
    method: 'post',
    data: parameter
  })
}
export function refundBillQuery(id) {
  return axios({
    url: '/sys/hr/insure/refundBill/query/'+id,
    method: 'get',
  })
}
export function refundBillOperate(parameter) {
  return axios({
    url: '/sys/hr/insure/refundBill/operate',
    method: 'post',
    data: parameter
  })
}
export function exportInsureRefundBill(parameter) {
  return axios({
    url: '/sys/hr/insure/refundBill/exportInsureRefundBill',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function exportInsureRefundBillTemplateExcel() {
  return axios({
    url: '/sys/hr/insure/refundBill/exportInsureRefundBillTemplateExcel',
    method: 'get',
    responseType: 'blob'
  })
}
export function importInsureRefundBillFile(parameter) {
  return axios({
    url: '/sys/hr/insure/refundBill/importInsureRefundBillFile',
    method: 'post',
    data: parameter
  })
}
export function listInsureType() {
  return axios({
    url: '/sys/hr/insure/staff/listInsureType',
    method: 'get'
  })
}